<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <a href="http//www.baidu.com">链接</a>
    <script>
        // 点击链接跳转下一界面后再退回正常情况并不会触发alert
        // pageshow事件完美解决这个问题
        // pageshow添加给window.
        // window.addEventListener('pageshow', function() {
        //     alert(11);
        // });
    </script>
</body>

</html>